package com.itstudio.myforumsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itstudio.myforumsystem.entity.Collection;
import com.itstudio.myforumsystem.mapper.CollectionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CollectionService extends ServiceImpl<CollectionMapper, Collection> implements IService<Collection> {

@Autowired
private CollectionMapper collectionMapper;
    public void removeByUseridAndArticleId(Integer userid, Integer articleid) {

        collectionMapper.removeByUseridAndArticleId(userid,articleid);
    }
}
